import request from '@/utils/request'

// 查询工作状态列表
export function getDeviceState() {
  return request({
    url: '/display/deviceState',
    method: 'get'
  })
}

// 用电分析
export function getElectricity(params) {
  return request({
    url: '/display/electricity',
    method: 'get',
    params
  })
}

// 违规统计
export function getHourViolations(params) {
  return request({
    url: '/display/hourViolations',
    method: 'get',
    params
  })
}

// 中间的实时数据
export function getRealtime() {
  return request({
    url: '/display/realtime',
    method: 'get'
  })
}

// 违规监控
export function getViolations() {
  return request({
    url: '/display/violations',
    method: 'get'
  })
}